home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / CIncludes / FinderRegistry.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  24.4 KB  |  701 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        FinderRegistry.h
  3.  
  4.      Contains:    Data types for Finder AppleEvents
  5.  
  6.      Version:    Technology:    Mac OS 8
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __FINDERREGISTRY__
  18. #define __FINDERREGISTRY__
  19.  
  20. #ifndef __AEREGISTRY__
  21. #include <AERegistry.h>
  22. #endif
  23. #ifndef __OSA__
  24. #include <OSA.h>
  25. #endif
  26.  
  27.  
  28.  
  29. #if PRAGMA_ONCE
  30. #pragma once
  31. #endif
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. #if PRAGMA_IMPORT
  38. #pragma import on
  39. #endif
  40.  
  41. #if PRAGMA_STRUCT_ALIGN
  42.     #pragma options align=mac68k
  43. #elif PRAGMA_STRUCT_PACKPUSH
  44.     #pragma pack(push, 2)
  45. #elif PRAGMA_STRUCT_PACK
  46.     #pragma pack(2)
  47. #endif
  48.  
  49.  
  50. /*
  51.   //////////////////////////////////////
  52.    Finder Suite
  53.   //////////////////////////////////////
  54. */
  55.  
  56. /*
  57.    The old Finder Event suite was 'FNDR'
  58.    The new suite is 'fndr'
  59. */
  60.  
  61. enum {
  62.     kAEFinderSuite                = FOUR_CHAR_CODE('fndr')
  63. };
  64.  
  65. /*
  66.   //////////////////////////////////////
  67.    Finder Events
  68.   //////////////////////////////////////
  69. */
  70.  
  71. enum {
  72.     kAECleanUp                    = FOUR_CHAR_CODE('fclu'),
  73.     kAEEject                    = FOUR_CHAR_CODE('ejct'),
  74.     kAEEmpty                    = FOUR_CHAR_CODE('empt'),
  75.     kAEErase                    = FOUR_CHAR_CODE('fera'),
  76.     kAEGestalt                    = FOUR_CHAR_CODE('gstl'),
  77.     kAEPutAway                    = FOUR_CHAR_CODE('ptwy'),
  78.     kAERebuildDesktopDB            = FOUR_CHAR_CODE('rddb'),
  79.     kAESync                        = FOUR_CHAR_CODE('fupd'),
  80.     kAEInterceptOpen            = FOUR_CHAR_CODE('fopn')
  81. };
  82.  
  83. /* "Sort" from the database suite:*/
  84.  
  85. enum {
  86.     kAEDatabaseSuite            = FOUR_CHAR_CODE('DATA'),
  87.     kAESort                        = FOUR_CHAR_CODE('SORT')
  88. };
  89.  
  90. /*
  91.   ////////////////////////////////////////////////////////////////////////
  92.    Classes
  93.    Note: all classes are defined up front so that the property definitions
  94.    can reference classes.
  95.   ////////////////////////////////////////////////////////////////////////
  96. */
  97.  
  98.  
  99. enum {
  100.     cInternalFinderObject        = FOUR_CHAR_CODE('obj ')        /* cReference - used to distinguish objects used inside the Finder only*/
  101. };
  102.  
  103. /*
  104.    Main Finder class definitions
  105.    Indentation implies object model hierarchy
  106. */
  107.  
  108. enum {
  109.                                                                 /* We do not use class cItem from AERegistry.r. Instead our class Item is a cObject //••  BREADCRUMB pmc - WHY??*/
  110.                                                                 /*            cItem                                    = 'citm',        // defined in AERegistry.r*/
  111.                                                                 /*                cFile                                = 'file',    // defined in AERegistry.r*/
  112.     cAliasFile                    = FOUR_CHAR_CODE('alia'),
  113.     cApplicationFile            = FOUR_CHAR_CODE('appf'),
  114.     cControlPanelFile            = FOUR_CHAR_CODE('ccdv'),
  115.     cDeskAccessoryFile            = FOUR_CHAR_CODE('dafi'),
  116.     cDocumentFile                = FOUR_CHAR_CODE('docf'),
  117.     cFontFile                    = FOUR_CHAR_CODE('fntf'),
  118.     cSoundFile                    = FOUR_CHAR_CODE('sndf'),
  119.     cClippingFile                = FOUR_CHAR_CODE('clpf'),
  120.     cContainer                    = FOUR_CHAR_CODE('ctnr'),
  121.     cDesktop                    = FOUR_CHAR_CODE('cdsk'),
  122.     cSharableContainer            = FOUR_CHAR_CODE('sctr'),
  123.     cDisk                        = FOUR_CHAR_CODE('cdis'),
  124.     cFolder                        = FOUR_CHAR_CODE('cfol'),
  125.     cSuitcase                    = FOUR_CHAR_CODE('stcs'),
  126.     cAccessorySuitcase            = FOUR_CHAR_CODE('dsut'),
  127.     cFontSuitcase                = FOUR_CHAR_CODE('fsut'),
  128.     cTrash                        = FOUR_CHAR_CODE('ctrs'),
  129.     cDesktopPrinter                = FOUR_CHAR_CODE('dskp'),
  130.     cContentSpace                = FOUR_CHAR_CODE('dwnd'),        /*                cWindow                                = 'cwin',        // defined in AERegistry.r*/
  131.     cContainerWindow            = FOUR_CHAR_CODE('cwnd'),
  132.     cInfoWindow                    = FOUR_CHAR_CODE('iwnd'),
  133.     cSharingWindow                = FOUR_CHAR_CODE('swnd'),
  134.     cStatusWindow                = FOUR_CHAR_CODE('qwnd'),
  135.     cClippingWindow                = FOUR_CHAR_CODE('lwnd'),
  136.     cPreferencesWindow            = FOUR_CHAR_CODE('pwnd'),
  137.     cDTPWindow                    = FOUR_CHAR_CODE('dtpw'),
  138.     cProcess                    = FOUR_CHAR_CODE('prcs'),
  139.     cAccessoryProcess            = FOUR_CHAR_CODE('pcda'),
  140.     cApplicationProcess            = FOUR_CHAR_CODE('pcap'),
  141.     cGroup                        = FOUR_CHAR_CODE('sgrp'),
  142.     cUser                        = FOUR_CHAR_CODE('cuse'),        /*            cApplication                            = 'capp',        // defined in AERegistry.r*/
  143.     cSharingPrivileges            = FOUR_CHAR_CODE('priv'),
  144.     cPreferences                = FOUR_CHAR_CODE('cprf'),
  145.     cLabel                        = FOUR_CHAR_CODE('clbl'),        /* For use by viewer search engines:*/
  146.     cOnlineDisk                    = FOUR_CHAR_CODE('cods'),
  147.     cOnlineLocalDisk            = FOUR_CHAR_CODE('clds'),
  148.     cOnlineRemoteDisk            = FOUR_CHAR_CODE('crds'),        /* Miscellaneous class definitions*/
  149.     cEntireContents                = FOUR_CHAR_CODE('ects'),        /*•• BREADCRUMB  pmc - also defined in EntireContents.h*/
  150.     cIconFamily                    = FOUR_CHAR_CODE('ifam')
  151. };
  152.  
  153.  
  154. /*
  155.   //////////////////////////////////////
  156.    Properties
  157.   //////////////////////////////////////
  158. */
  159.  
  160. /* Properties of class cItem (really cObject)*/
  161.  
  162. enum {
  163.                                                                 /*    pBounds                                    = 'pbnd',            // defined in AERegistry.r*/
  164.     pComment                    = FOUR_CHAR_CODE('comt'),
  165.     pContainer                    = cContainer,
  166.     pContentSpace                = cContentSpace,
  167.     pCreationDateOld            = FOUR_CHAR_CODE('crtd'),        /* to support pre-Finder 8 scripts*/
  168.     pCreationDate                = FOUR_CHAR_CODE('ascd'),        /* from File Commands OSAX*/
  169.     pDescription                = FOUR_CHAR_CODE('dscr'),
  170.     pDisk                        = cDisk,
  171.     pFolderOld                    = cFolder,                        /* to support pre-Finder 8 scripts*/
  172.     pFolder                        = FOUR_CHAR_CODE('asdr'),        /* from File Commands OSAX*/
  173.     pIconBitmap                    = FOUR_CHAR_CODE('iimg'),        /*    pID                                        = 'ID  ',            // defined in AERegistry.r*/
  174.     pInfoWindow                    = cInfoWindow,
  175.     pKind                        = FOUR_CHAR_CODE('kind'),
  176.     pLabelIndex                    = FOUR_CHAR_CODE('labi'),
  177.     pModificationDateOld        = FOUR_CHAR_CODE('modd'),        /* to support pre-Finder 8 scripts*/
  178.     pModificationDate            = FOUR_CHAR_CODE('asmo'),        /* from File Commands OSAX*/
  179.                                                                 /*    pName                                    = 'pnam',            // defined in AERegistry.r*/
  180.     pPhysicalSize                = FOUR_CHAR_CODE('phys'),
  181.     pPosition                    = FOUR_CHAR_CODE('posn'),
  182.     pIsSelected                    = FOUR_CHAR_CODE('issl'),
  183.     pSize                        = pPointSize,                    /* pPointSize defined in AERegistry.r*/
  184.     pWindow                        = cWindow,
  185.     pPreferencesWindow            = cPreferencesWindow
  186. };
  187.  
  188.  
  189. /* Properties of class cFile (subclass of cItem)*/
  190.  
  191. enum {
  192.     pFileCreator                = FOUR_CHAR_CODE('fcrt'),
  193.     pFileType                    = FOUR_CHAR_CODE('asty'),        /* from File Commands OSAX*/
  194.     pFileTypeOld                = FOUR_CHAR_CODE('fitp'),        /* to support pre-Finder 8 scripts*/
  195.     pIsLocked                    = FOUR_CHAR_CODE('aslk'),        /* from File Commands OSAX*/
  196.     pIsLockedOld                = FOUR_CHAR_CODE('islk'),        /* to support pre-Finder 8 scripts*/
  197.                                                                 /*    pIsStationeryPad                        = 'pspd',            // defined in AERegistry.r                            */
  198.                                                                 /*    pVersion                                = 'vers',            // defined in AERegistry.r*/
  199.     pProductVersion                = FOUR_CHAR_CODE('ver2')
  200. };
  201.  
  202.  
  203. /* Properties of class cAliasFile (subclass of cFile)*/
  204.  
  205. enum {
  206.     pOriginalItem                = FOUR_CHAR_CODE('orig')
  207. };
  208.  
  209. /* Properties of class cApplicationFile (subclass of cFile)*/
  210.  
  211. enum {
  212.     pMinAppPartition            = FOUR_CHAR_CODE('mprt'),
  213.     pAppPartition                = FOUR_CHAR_CODE('appt'),
  214.     pSuggestedAppPartition        = FOUR_CHAR_CODE('sprt'),
  215.     pIsScriptable                = FOUR_CHAR_CODE('isab')
  216. };
  217.  
  218. /*
  219.    Properties of class cControlPanel (Views CP only) (subclass of cFile)
  220.    Note: the other view-like preference settings are not available in the Views
  221.    control panel. These properties are only offered here for backward compatability.
  222.    To set the full range of Finder Preferences, use the Preferences object.
  223. */
  224.  
  225. enum {
  226.     pShowFolderSize                = FOUR_CHAR_CODE('sfsz'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  227.     pShowComment                = FOUR_CHAR_CODE('scom'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  228.     pShowDate                    = FOUR_CHAR_CODE('sdat'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  229.     pShowCreationDate            = FOUR_CHAR_CODE('scda'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  230.     pShowKind                    = FOUR_CHAR_CODE('sknd'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  231.     pShowLabel                    = FOUR_CHAR_CODE('slbl'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  232.     pShowSize                    = FOUR_CHAR_CODE('ssiz'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  233.     pShowVersion                = FOUR_CHAR_CODE('svrs'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  234.     pSortDirection                = FOUR_CHAR_CODE('sord'),
  235.     pShowDiskInfo                = FOUR_CHAR_CODE('sdin'),        /* Always on in Finder 8.0 HIS*/
  236.     pListViewIconSize            = FOUR_CHAR_CODE('lvis'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  237.     pGridIcons                    = FOUR_CHAR_CODE('fgrd'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  238.     pStaggerIcons                = FOUR_CHAR_CODE('fstg'),        /* No longer part of the Finder 8.0 HIS*/
  239.     pViewFont                    = FOUR_CHAR_CODE('vfnt'),
  240.     pViewFontSize                = FOUR_CHAR_CODE('vfsz')
  241. };
  242.  
  243. /* Properties of class cContainer (subclass of cItem)*/
  244.  
  245. enum {
  246.     pCompletelyExpanded            = FOUR_CHAR_CODE('pexc'),
  247.     pContainerWindow            = cContainerWindow,
  248.     pEntireContents                = cEntireContents,
  249.     pExpandable                    = FOUR_CHAR_CODE('pexa'),
  250.     pExpanded                    = FOUR_CHAR_CODE('pexp'),
  251.     pPreviousView                = FOUR_CHAR_CODE('svew'),        /*    pSelection                                = 'sele',        // defined in AERegistry.r*/
  252.     pView                        = FOUR_CHAR_CODE('pvew'),
  253.     pIconSize                    = pListViewIconSize,            /* defined above*/
  254.     pKeepArranged                = FOUR_CHAR_CODE('arrg'),
  255.     pKeepArrangedBy                = FOUR_CHAR_CODE('arby')
  256. };
  257.  
  258. /* Properties of class cDesktop (subclass of cContainer)*/
  259.  
  260. enum {
  261.     pStartupDisk                = FOUR_CHAR_CODE('sdsk'),
  262.     pTrash                        = FOUR_CHAR_CODE('trsh')        /* NOTE can't use cTrash    */
  263. };
  264.  
  265. /* Properties of class cSharableContainer (subclass of cContainer)*/
  266.  
  267. enum {
  268.     pOwner                        = FOUR_CHAR_CODE('sown'),
  269.     pOwnerPrivileges            = FOUR_CHAR_CODE('ownr'),
  270.     pGroup                        = cGroup,
  271.     pGroupPrivileges            = FOUR_CHAR_CODE('gppr'),
  272.     pGuestPrivileges            = FOUR_CHAR_CODE('gstp'),
  273.     pArePrivilegesInherited        = FOUR_CHAR_CODE('iprv'),
  274.     pExported                    = FOUR_CHAR_CODE('sexp'),
  275.     pMounted                    = FOUR_CHAR_CODE('smou'),
  276.     pSharingProtection            = FOUR_CHAR_CODE('spro'),
  277.     pSharing                    = FOUR_CHAR_CODE('shar'),
  278.     pSharingWindow                = cSharingWindow
  279. };
  280.  
  281. /* Properties of class cDisk (subclass of cSharableContainer)*/
  282.  
  283. enum {
  284.     pCapacity                    = FOUR_CHAR_CODE('capa'),
  285.     pEjectable                    = FOUR_CHAR_CODE('isej'),
  286.     pFreeSpace                    = FOUR_CHAR_CODE('frsp'),
  287.     pLocal                        = FOUR_CHAR_CODE('isrv'),
  288.     pIsStartup                    = FOUR_CHAR_CODE('istd')
  289. };
  290.  
  291. /* Properties of class cTrash (subclass of cSharableContainer)*/
  292.  
  293. enum {
  294.     pWarnOnEmpty                = FOUR_CHAR_CODE('warn')
  295. };
  296.  
  297. /* Properties of class cWindow (subclass of cContentSpace)*/
  298.  
  299. enum {
  300.                                                                 /*    pBounds                                    = 'pbnd',        // defined in AERegistry.r*/
  301.                                                                 /*    pHasCloseBox                            = 'hclb',        // defined in AERegistry.r*/
  302.                                                                 /*    pIsFloating                                = 'isfl',        // defined in AERegistry.r*/
  303.                                                                 /*    pIndex                                    = 'pidx',        // defined in AERegistry.r*/
  304.                                                                 /*    pIsModal                                = 'pmod',        // defined in AERegistry.r*/
  305.                                                                 /*    pPosition                                = 'posn',        // defined above*/
  306.                                                                 /*    pIsResizable                            = 'prsz',        // defined in AERegistry.r*/
  307.                                                                 /*    pHasTitleBar                            = 'ptit',        // defined in AERegistry.r*/
  308.                                                                 /*    pVisible                                = 'pvis',        // defined in AERegistry.r*/
  309.                                                                 /*    pIsZoomable                                = 'iszm',        // defined in AERegistry.r*/
  310.                                                                 /*    pIsZoomed                                = 'pzum',        // defined in AERegistry.r*/
  311.     pIsZoomedFull                = FOUR_CHAR_CODE('zumf'),
  312.     pIsPopup                    = FOUR_CHAR_CODE('drwr'),
  313.     pIsPulledOpen                = FOUR_CHAR_CODE('pull'),        /* only applies to popup windows*/
  314.     pIsCollapsed                = FOUR_CHAR_CODE('wshd')        /* only applies to normal windows*/
  315. };
  316.  
  317. /* Properties of class cContainerWindow (subclass of cWindow)*/
  318.  
  319. enum {
  320.     pObject                        = cObject
  321. };
  322.  
  323. /* Properties of class cSharingWindow (subclass of cWindow)*/
  324.  
  325. enum {
  326.     pSharableContainer            = cSharableContainer
  327. };
  328.  
  329. /* Properties of networking support*/
  330.  
  331. enum {
  332.     pFileShareOn                = FOUR_CHAR_CODE('fshr'),
  333.     pFileShareStartingUp        = FOUR_CHAR_CODE('fsup'),
  334.     pProgramLinkingOn            = FOUR_CHAR_CODE('iac ')
  335. };
  336.  
  337. /* Properties of class cPreferencesWindow (subclass of cWindow)*/
  338.  
  339. enum {
  340.                                                                 /*    pShowFolderSize                            = 'sfsz',            // defined above for Views CP*/
  341.                                                                 /*    pShowComment                            = 'scom',            // defined above for Views CP*/
  342.     ShowModificationDate        = pShowDate,                    /* pShowDate defined above for Views CP*/
  343.                                                                 /*    pShowKind                                = 'sknd',            // defined above for Views CP*/
  344.                                                                 /*    pShowLabel                                = 'slbl',            // defined above for Views CP*/
  345.                                                                 /*    pShowSize                                = 'ssiz',            // defined above for Views CP*/
  346.                                                                 /*    pShowVersion                            = 'svrs',            // defined above for Views CP*/
  347.                                                                 /*    pShowCreationDate                        = 'scda',            // Removed from Finder 8.0 HIS*/
  348.                                                                 /*    pShowFileType                            = 'sfty',            // Removed from Finder 8.0 HIS*/
  349.                                                                 /*    pShowFileCreator                        = 'sfcr',            // Removed from Finder 8.0 HIS*/
  350.                                                                 /*    pListViewIconSize                        = 'lvis',            // defined above for Views CP*/
  351.                                                                 /*    pGridIcons                                = 'fgrd',            // defined above for Views CP*/
  352.                                                                 /*    pStaggerIcons                            = 'fstg',            // defined above for Views CP*/
  353.                                                                 /*    pViewFont                                = 'vfnt',            // defined above for Views CP*/
  354.                                                                 /*    pViewFontSize                            = 'vfsz',            // defined above for Views CP*/
  355.     pUseRelativeDate            = FOUR_CHAR_CODE('urdt'),        /* Moved to a per-folder basis in Finder 8.0 HIS*/
  356.     pDelayBeforeSpringing        = FOUR_CHAR_CODE('dela'),
  357.     pSpringOpenFolders            = FOUR_CHAR_CODE('sprg'),
  358.     pUseShortMenus                = FOUR_CHAR_CODE('usme'),
  359.     pUseWideGrid                = FOUR_CHAR_CODE('uswg'),
  360.     pLabel1                        = FOUR_CHAR_CODE('lbl1'),
  361.     pLabel2                        = FOUR_CHAR_CODE('lbl2'),
  362.     pLabel3                        = FOUR_CHAR_CODE('lbl3'),
  363.     pLabel4                        = FOUR_CHAR_CODE('lbl4'),
  364.     pLabel5                        = FOUR_CHAR_CODE('lbl5'),
  365.     pLabel6                        = FOUR_CHAR_CODE('lbl6'),
  366.     pLabel7                        = FOUR_CHAR_CODE('lbl7')        /*    pObject                                    = cObject            // defined above*/
  367. };
  368.  
  369. /* Properties of class cProcess (subclass of cObject)*/
  370.  
  371. enum {
  372.                                                                 /*    pName                                    = 'pnam',            // defined in AERegistry.r*/
  373.     pFile                        = cFile,                        /*    pCreatorType                            = 'fcrt',            // defined above*/
  374.                                                                 /*    pFileType                                = 'asty',            // defined above*/
  375.                                                                 /*    pIsFrontProcess                            = 'pisf',            // defined in AERegistry.r*/
  376.                                                                 /*    pAppPartition                            = 'appt',            // defined above*/
  377.     pPartitionSpaceUsed            = FOUR_CHAR_CODE('pusd'),        /*    pIsScriptable                            = 'isab',            // defined in AERegistry.r*/
  378.                                                                 /*    pVisible                                = 'pvis'            // defined in AERegistry.r*/
  379.     pLocalAndRemoteEvents        = FOUR_CHAR_CODE('revt')
  380. };
  381.  
  382. /* Properties of class cAccessoryProcess (subclass of cProcess)*/
  383.  
  384. enum {
  385.     pDeskAccessoryFile            = cDeskAccessoryFile
  386. };
  387.  
  388. /* Properties of class cApplicationProcess (subclass of cProcess)*/
  389.  
  390. enum {
  391.     pApplicationFile            = cApplicationFile
  392. };
  393.  
  394.  
  395. /* Properties of class cUser (subclass of cObject)*/
  396.  
  397. enum {
  398.                                                                 /*    pBounds*/
  399.                                                                 /*    pIconBitmap*/
  400.                                                                 /*    pLabelIndex*/
  401.                                                                 /*    pName*/
  402.                                                                 /*    pPosition*/
  403.                                                                 /*    pWindow                                    = cWindow,            // defined above*/
  404.     pCanConnect                    = FOUR_CHAR_CODE('ccon'),
  405.     pCanChangePassword            = FOUR_CHAR_CODE('ccpw'),
  406.     pCanDoProgramLinking        = FOUR_CHAR_CODE('ciac'),
  407.     pIsOwner                    = FOUR_CHAR_CODE('isow'),
  408.     pARADialIn                    = FOUR_CHAR_CODE('arad'),
  409.     pShouldCallBack                = FOUR_CHAR_CODE('calb'),
  410.     pCallBackNumber                = FOUR_CHAR_CODE('cbnm')
  411. };
  412.  
  413. /*
  414.    Properties of class cApplication (subclass of cObject)
  415.    NOTE: properties for the special folders must match their respective kXXXFolderType constants
  416. */
  417.  
  418. enum {
  419.     pAboutMacintosh                = FOUR_CHAR_CODE('abbx'),
  420.     pAppleMenuItemsFolder        = FOUR_CHAR_CODE('amnu'),        /* kAppleMenuFolderType*/
  421.                                                                 /*    pClipboard                                = 'pcli',            // defined in AERegistry.r*/
  422.     pControlPanelsFolder        = FOUR_CHAR_CODE('ctrl'),        /* kControlPanelFolderType*/
  423.     pDesktop                    = FOUR_CHAR_CODE('desk'),        /* kDesktopFolderType*/
  424.     pExtensionsFolder            = FOUR_CHAR_CODE('extn'),        /* kExtensionFolderType*/
  425.                                                                 /*    pFileShareOn                            = 'fshr',            // defined above*/
  426.     pFinderPreferences            = FOUR_CHAR_CODE('pfrp'),
  427.     pFontsFolder                = FOUR_CHAR_CODE('ffnt'),        /*    pIsFrontProcess                            = 'pisf',            // defined in AERegistry.r*/
  428.                                                                 /*    pInsertionLoc                            = 'pins',            // defined in AERegistry.r*/
  429.     pLargestFreeBlock            = FOUR_CHAR_CODE('mfre'),
  430.     pPreferencesFolder            = FOUR_CHAR_CODE('pref'),        /* kPreferencesFolderType*/
  431.                                                                 /*    pProductVersion                            = 'ver2',            // defined above*/
  432.                                                                 /*    pUserSelection                            = 'pusl',            // defined in AERegistry.r*/
  433.                                                                 /*    pFileShareStartingUp                    = 'fsup',            // defined above*/
  434.     pShortCuts                    = FOUR_CHAR_CODE('scut'),
  435.     pShutdownFolder                = FOUR_CHAR_CODE('shdf'),
  436.     pStartupItemsFolder            = FOUR_CHAR_CODE('strt'),        /* kStartupFolderType*/
  437.     pSystemFolder                = FOUR_CHAR_CODE('macs'),        /* kSystemFolderType*/
  438.     pTemporaryFolder            = FOUR_CHAR_CODE('temp'),        /* kTemporaryFolderType*/
  439.                                                                 /*    pVersion                                = 'vers',            // defined in AERegistry.r*/
  440.     pViewPreferences            = FOUR_CHAR_CODE('pvwp'),        /*    pVisible                                = 'pvis',            // defined in AERegistry.r*/
  441.     pStartingUp                    = FOUR_CHAR_CODE('awak')        /* private property to tell whether the Finder is fully up and running*/
  442. };
  443.  
  444. /* Properties of class cSharingPrivileges (subclass of cObject)*/
  445.  
  446. enum {
  447.     pSeeFiles                    = FOUR_CHAR_CODE('prvr'),
  448.     pSeeFolders                    = FOUR_CHAR_CODE('prvs'),
  449.     pMakeChanges                = FOUR_CHAR_CODE('prvw')
  450. };
  451.  
  452. /*
  453.    Properties of class cPreferences (subclass of cObject)
  454.   enum {
  455.       pShowFolderSize                            = 'sfsz',            // defined above for Views CP
  456.       pShowComment                            = 'scom',            // defined above for Views CP
  457.       pShowModificationDate                    = pShowDate,            // pShowDate defined above for Views CP
  458.       pShowKind                                = 'sknd',            // defined above for Views CP
  459.       pShowLabel                                = 'slbl',            // defined above for Views CP
  460.       pShowSize                                = 'ssiz',            // defined above for Views CP
  461.       pShowVersion                            = 'svrs',            // defined above for Views CP
  462.       pShowCreationDate                        = 'scda',            // defined in cPreferencesWindow
  463.       pShowFileType                            = 'sfty',            // defined in cPreferencesWindow
  464.       pShowFileCreator                        = 'sfcr',            // defined in cPreferencesWindow
  465.       pListViewIconSize                        = 'lvis',            // defined above for Views CP
  466.       pGridIcons                                = 'fgrd',            // defined above for Views CP
  467.       pStaggerIcons                            = 'fstg',            // defined above for Views CP
  468.       pViewFont                                = 'vfnt',            // defined above for Views CP
  469.       pViewFontSize                            = 'vfsz',            // defined above for Views CP
  470.       pUseRelativeDate                        = 'urdt',            // defined in cPreferencesWindow
  471.       pDelayBeforeSpringing                    = 'dela',            // defined in cPreferencesWindow
  472.       pShowMacOSFolder                        = 'sosf',            // defined in cPreferencesWindow
  473.       pUseShortMenus                            = 'usme',            // defined in cPreferencesWindow
  474.       pUseCustomNewMenu                        = 'ucnm',            // defined in cPreferencesWindow
  475.       pShowDesktopInBackground                = 'sdtb',            // defined in cPreferencesWindow
  476.       pActivateDesktopOnClick                    = 'adtc',            // defined in cPreferencesWindow
  477.       pLabel1                                    = 'lbl1',            // defined in cPreferencesWindow
  478.       pLabel2                                    = 'lbl2',            // defined in cPreferencesWindow
  479.       pLabel3                                    = 'lbl3',            // defined in cPreferencesWindow
  480.       pLabel4                                    = 'lbl4',            // defined in cPreferencesWindow
  481.       pLabel5                                    = 'lbl5',            // defined in cPreferencesWindow
  482.       pLabel6                                    = 'lbl6',            // defined in cPreferencesWindow
  483.       pLabel7                                    = 'lbl7',            // defined in cPreferencesWindow
  484.       pWindow                                    = cWindow            // defined above
  485.   };
  486. */
  487.  
  488. /*
  489.    Properties of class cLabel (subclass of cObject)
  490.   enum {
  491.       pName                                    = 'pnam',            // defined in AERegistry.r
  492.       pColor                                    = 'colr',            // defined in AERegistry.r
  493.   };
  494. */
  495.  
  496. /* Misc Properties*/
  497.  
  498. enum {
  499.     pSmallIcon                    = FOUR_CHAR_CODE('smic'),
  500.     pSmallButton                = FOUR_CHAR_CODE('smbu'),
  501.     pLargeButton                = FOUR_CHAR_CODE('lgbu'),
  502.     pGrid                        = FOUR_CHAR_CODE('grid')
  503. };
  504.  
  505. /*
  506.   //////////////////////////////////////
  507.    Enumerations defined by the Finder
  508.   //////////////////////////////////////
  509. */
  510.  
  511.  
  512. enum {
  513.     enumViewBy                    = FOUR_CHAR_CODE('vwby'),
  514.     enumGestalt                    = FOUR_CHAR_CODE('gsen'),
  515.     enumConflicts                = FOUR_CHAR_CODE('cflc'),
  516.     enumExistingItems            = FOUR_CHAR_CODE('exsi'),
  517.     enumOlderItems                = FOUR_CHAR_CODE('oldr')
  518. };
  519.  
  520.  
  521. enum {
  522.     enumDate                    = FOUR_CHAR_CODE('enda'),
  523.     enumAnyDate                    = FOUR_CHAR_CODE('anyd'),
  524.     enumToday                    = FOUR_CHAR_CODE('tday'),
  525.     enumYesterday                = FOUR_CHAR_CODE('yday'),
  526.     enumThisWeek                = FOUR_CHAR_CODE('twek'),
  527.     enumLastWeek                = FOUR_CHAR_CODE('lwek'),
  528.     enumThisMonth                = FOUR_CHAR_CODE('tmon'),
  529.     enumLastMonth                = FOUR_CHAR_CODE('lmon'),
  530.     enumThisYear                = FOUR_CHAR_CODE('tyer'),
  531.     enumLastYear                = FOUR_CHAR_CODE('lyer'),
  532.     enumBeforeDate                = FOUR_CHAR_CODE('bfdt'),
  533.     enumAfterDate                = FOUR_CHAR_CODE('afdt'),
  534.     enumBetweenDate                = FOUR_CHAR_CODE('btdt'),
  535.     enumOnDate                    = FOUR_CHAR_CODE('ondt')
  536. };
  537.  
  538.  
  539. enum {
  540.     enumAllDocuments            = FOUR_CHAR_CODE('alld'),
  541.     enumFolders                    = FOUR_CHAR_CODE('fold'),
  542.     enumAliases                    = FOUR_CHAR_CODE('alia'),
  543.     enumStationery                = FOUR_CHAR_CODE('stat')
  544. };
  545.  
  546.  
  547. enum {
  548.     enumWhere                    = FOUR_CHAR_CODE('wher'),
  549.     enumAllLocalDisks            = FOUR_CHAR_CODE('aldk'),
  550.     enumAllRemoteDisks            = FOUR_CHAR_CODE('ardk'),
  551.     enumAllDisks                = FOUR_CHAR_CODE('alld'),
  552.     enumAllOpenFolders            = FOUR_CHAR_CODE('aofo')
  553. };
  554.  
  555.  
  556.  
  557. enum {
  558.     enumIconSize                = FOUR_CHAR_CODE('isiz'),
  559.     enumSmallIconSize            = pSmallIcon,
  560.     enumMiniIconSize            = FOUR_CHAR_CODE('miic'),
  561.     enumLargeIconSize            = FOUR_CHAR_CODE('lgic')
  562. };
  563.  
  564.  
  565. enum {
  566.     enumSortDirection            = FOUR_CHAR_CODE('sodr'),
  567.     enumSortDirectionNormal        = FOUR_CHAR_CODE('snrm'),
  568.     enumSortDirectionReverse    = FOUR_CHAR_CODE('srvs')
  569. };
  570.  
  571. /*
  572.   //////////////////////////////////////
  573.    Types defined by the Finder
  574.   //////////////////////////////////////
  575. */
  576.  
  577.  
  578. enum {
  579.     typeIconFamily                = cIconFamily,                    /* An AEList of typeIconAndMask, type8BitIcon, & c.*/
  580.     typeIconAndMask                = FOUR_CHAR_CODE('ICN#'),
  581.     type8BitIcon                = FOUR_CHAR_CODE('icl8'),
  582.     type4BitIcon                = FOUR_CHAR_CODE('icl4'),
  583.     typeSmallIconAndMask        = FOUR_CHAR_CODE('ics#'),
  584.     typeSmall8BitIcon            = FOUR_CHAR_CODE('ics8'),
  585.     typeSmall4BitIcon            = FOUR_CHAR_CODE('ics4'),
  586.     typeRelativeTime            = FOUR_CHAR_CODE('rtim'),
  587.     typeConceptualTime            = FOUR_CHAR_CODE('timc')
  588. };
  589.  
  590. /*
  591.   //////////////////////////////////////
  592.    Keywords defined by the Finder
  593.   //////////////////////////////////////
  594. */
  595.  
  596.  
  597. enum {
  598.     keyIconAndMask                = FOUR_CHAR_CODE('ICN#'),
  599.     key8BitIcon                    = FOUR_CHAR_CODE('icl8'),
  600.     key4BitIcon                    = FOUR_CHAR_CODE('icl4'),
  601.     keySmallIconAndMask            = FOUR_CHAR_CODE('ics#'),
  602.     keySmall8BitIcon            = FOUR_CHAR_CODE('ics8'),
  603.     keySmall4BitIcon            = FOUR_CHAR_CODE('ics4'),
  604.     keyAEUsing                    = FOUR_CHAR_CODE('usin'),
  605.     keyAEReplacing                = FOUR_CHAR_CODE('alrp'),
  606.     keyAENoAutoRouting            = FOUR_CHAR_CODE('rout'),
  607.     keyLocalPositionList        = FOUR_CHAR_CODE('mvpl'),
  608.     keyGlobalPositionList        = FOUR_CHAR_CODE('mvpg')
  609. };
  610.  
  611. /*
  612.   //////////////////////////////////////
  613.    New prepositions used by the Finder
  614.   //////////////////////////////////////
  615. */
  616.  
  617.  
  618. enum {
  619.     keyASPrepositionHas            = FOUR_CHAR_CODE('has '),
  620.     keyAll                        = FOUR_CHAR_CODE('kyal'),
  621.     keyOldFinderItems            = FOUR_CHAR_CODE('fsel')
  622. };
  623.  
  624. /*
  625.   //////////////////////////////////////
  626.    New key forms used by the Finder
  627.   //////////////////////////////////////
  628. */
  629.  
  630.  
  631. enum {
  632.     formAlias                    = typeAlias,
  633.     formCreator                    = pFileCreator
  634. };
  635.  
  636.  
  637. /*
  638.   //////////////////////////////////////
  639.    Finder error codes
  640.   //////////////////////////////////////
  641. */
  642.  
  643.  
  644. enum {
  645.     errFinderIsBusy                = -15260,
  646.     errFinderWindowNotOpen        = -15261,
  647.     errFinderCannotPutAway        = -15262,
  648.     errFinderWindowMustBeIconView = -15263,                        /* RequireWindowInIconView*/
  649.     errFinderWindowMustBeListView = -15264,                        /* RequireWindowInListView*/
  650.     errFinderCantMoveToDestination = -15265,
  651.     errFinderCantMoveSource        = -15266,
  652.     errFinderCantOverwrite        = -15267,
  653.     errFinderIncestuousMove        = -15268,                        /* Could just use errFinderCantMoveSource*/
  654.     errFinderCantMoveToAncestor    = -15269,                        /* Could also use errFinderCantMoveSource*/
  655.     errFinderCantUseTrashedItems = -15270,
  656.     errFinderItemAlreadyInDest    = -15271,                        /* Move from folder A to folder A*/
  657.     errFinderUnknownUser        = -15272,                        /* Includes unknown group*/
  658.     errFinderSharePointsCantInherit = -15273,
  659.     errFinderWindowWrongType    = -15274,
  660.     errFinderPropertyNowWindowBased = -15275,
  661.     errFinderCorruptOpenFolderList = -15276,
  662.     errFinderNoInvisibleFiles    = -15277,
  663.     errFinderBoundsWrong        = -15278,
  664.     errAEValueOutOfRange        = -15279,
  665.     errFinderPropertyDoesNotApply = -15280,
  666.     errFinderFileSharingMustBeOn = -15281,
  667.     errFinderMustBeActive        = -15282,
  668.     errFinderVolumeNotFound        = -15283,                        /* more descriptive than what we get with nsvErr*/
  669.     errFinderLockedItemsInTrash    = -15284,                        /* there are some locked items in the trash*/
  670.     errFinderOnlyLockedItemsInTrash = -15285,                    /* all the items (except folders) in the trash are locked*/
  671.     errFinderProgramLinkingMustBeOn = -15286,
  672.     errFinderLastReserved        = -15379
  673. };
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681. #if PRAGMA_STRUCT_ALIGN
  682.     #pragma options align=reset
  683. #elif PRAGMA_STRUCT_PACKPUSH
  684.     #pragma pack(pop)
  685. #elif PRAGMA_STRUCT_PACK
  686.     #pragma pack()
  687. #endif
  688.  
  689. #ifdef PRAGMA_IMPORT_OFF
  690. #pragma import off
  691. #elif PRAGMA_IMPORT
  692. #pragma import reset
  693. #endif
  694.  
  695. #ifdef __cplusplus
  696. }
  697. #endif
  698.  
  699. #endif /* __FINDERREGISTRY__ */
  700.  
  701.